<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="xml"/>
<xsl:variable name="ciudad">cadiz</xsl:variable>
<xsl:template match="/graphml/graph">
	<graphml>
		<graph>
			<xsl:for-each select="edge">
				<xsl:if test="attribute::source=$ciudad or attribute::target=$ciudad">
					<xsl:copy-of select="."/>
				</xsl:if>
			</xsl:for-each>
		</graph>
	</graphml>
</xsl:template>
</xsl:stylesheet>